<div id="topmenu" style="font-size:11px;">
    <div id="horiznav">
        <li><a href="<?php echo base_url();?>main/home_page">Home</a></li>
        <?php
            $tempsession = $this->session->userdata('user');
            if ($tempsession){ $role_id = $tempsession['role_id']; ?>
        <li>
            <a href="<?php echo base_url();?>main/task_page">Task</a>
            <?php
                if($role_id==ROLE_CONSIGNEE){
                    // consignee
                    $role = 'consignee';
                    ?>
                    <ul>
                    <li><a href="<?php echo base_url();?>message/payment_freightinvoice_management_page/add">Send Payment Bill of Freight Invoice</a></li>
                    <li><a href="<?php echo base_url();?>message/pib_management_page/add">Send PIB</a></li>
                    <li><a href="<?php echo base_url();?>message/message_management_page/add">Send Message</a></li>
                    </ul>
            <?php
                }else if($role_id==ROLE_SHIPPINGLINE){
                    // shippingline
                    $role = 'shippingline';
                    ?>
                    <ul>
                    <li><a href="<?php echo base_url();?>message/noticeofarrival_management_page/add">Send Notice of Arrival</a></li>
                    <li><a href="<?php echo base_url();?>message/freightinvoice_management_page/add">Send Freight Invoice</a></li>
                    <li><a href="<?php echo base_url();?>message/deliveryorder_management_page/add">Send Delivery Order</a></li>
                    <li><a href="<?php echo base_url();?>message/billoflading_management_page/add">Send Bill of Lading</a></li>
                    <li><a href="<?php echo base_url();?>message/message_management_page/add">Send Message</a></li>
                    </ul>
            <?php        
                }else if($role_id==ROLE_OPERATORTERMINAL){
                    // forwarder
                    $role = 'operatorterminal';
                }else if($role_id==ROLE_TRUCKING){
                    // trucking
                    $role = 'trucking';
                }else if($role_id==ROLE_INSW){
                    // trucking
                    $role = 'insw';
                    ?>
                    <ul>
                    <li><a href="<?php echo base_url();?>message/sppb_management_page/add">Send SPPB</a></li>
                    <li><a href="<?php echo base_url();?>message/message_management_page/add">Send Message</a></li>
                    </ul>
            <?php
                }
            ?>    
        </li>
        <?php } ?>
        <?php if ($tempsession){ ?>
        <li><a href="#">Trace Document</a>
            <ul>
                <li><a href="<?php echo base_url();?>message/inbox_page">Inbox</a></li>
                <li><a href="<?php echo base_url();?>message/outbox_page">Outbox</a></li>
            </ul>
        </li>
        <li><a href="<?php echo base_url();?>main/notification_page">Notification</a></li>
        <?php } ?>
        <li><a href="#">Link</a>
            <ul>
                <li><a target="_blank" href="http://www.insw.go.id">INSW</a></li>
                <li><a target="_blank" href="http://www.beacukai.go.id">Bea Cukai</a></li>
            </ul>
        </li>
        <li><a href="<?php echo base_url();?>main/about_page">About</a></li>
        <li><a href="<?php echo base_url();?>main/contact_page">Contact</a></li>
        <?php if ($tempsession){ ?>
        <li><a href="<?php echo base_url();?>user/logout">Logout</a></li>
        <?php } ?>
    </div>
</div>
